package cn.hznc.repository;

import cn.hznc.domain.entity.TypeItemEntity;
import cn.hznc.vo.CategoryVo;
import cn.hznc.vo.typeitem.TypeItemVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：Administrator
 * @Date：2023/5/12 10:47
 */
public interface TypeItemRepository{
    Integer getIndexByType(String type);

    String getTypeNameByType(String type);

    List<String> selectAllTypeName();

    String selectTypeByTypeName(@Param("typeName") String typeName);

    List<TypeItemEntity> selectParamsByTypeName(@Param("typeName") String typeName);

    String selectTypeNameByType(String type);

    List<TypeItemVo> selectAll();

    TypeItemEntity selectMaxChildTree(@Param("parentName") String parentTypeName);

    TypeItemEntity selectByTypeName(@Param("parentName") String parentTypeName);
}
